import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/main/home'
import Category from '@/views/main/category'
import Cart from '@/views/main/cart'
import Member from '@/views/Member/Index'
import GoodsDetail from '@/views/goods/detail.vue'
import ArticleInfo from '@/views/article/info.vue'
import GiftDetail from '@/views/gift/detail.vue'
import GiftList from '@/views/gift/list.vue'
import GoodsList from '@/views/goods/list.vue'
import BusinessList from '@/views/business/list.vue'
import BusinessDetail from '@/views/business/detail.vue'
import Login from '@/views/member/other/login.vue'
import Register from '@/views/member/other/register.vue'
import ForgetPwd from '@/views/member/other/forgetPwd.vue'
Vue.use(Router)

import "@/assets/css/index.css"
import "@/assets/css/reset.css"


export default new Router({
	routes: [{
			path: '/',
			name: 'Home',
			component: Home
		}, {
			path: '/Category',
			name: 'Category',
			component: Category
		}, {
			path: '/Cart',
			name: 'Cart',
			component: Cart
		},
		{
			path: '/Member',
			name: 'Member',
			component: Member
		},
		{
			path: '/GoodsDetail/:id',
			name: 'GoodsDetail',
			component: GoodsDetail
		},
		{
			path: '/ArticleInfo/:id',
			name: 'ArticleInfo',
			component: ArticleInfo
		},
		{
			path: '/GiftDetail/:id',
			name: 'GiftDetail',
			component: GiftDetail
		},
		{
			path: '/GiftList',
			name: 'GiftList',
			component: GiftList
		},
		{
			path: '/GoodsList',
			name: 'GoodsList',
			component: GoodsList
		},
		{
			path: '/BusinessList',
			name: 'BusinessList',
			component: BusinessList
		}, {
			path: '/BusinessDetail/:id',
			name: 'BusinessDetail',
			component: BusinessDetail
		},
		{
			path: '/Login',
			name: 'Login',
			component: Login
		},
		{
			path: '/Register',
			name: 'Register',
			component: Register
		},
		{
			path: '/ForgetPwd',
			name: 'ForgetPwd',
			component: ForgetPwd
		}
	]
})
